package com.xrit.sunnyday.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.xrit.sunnyday.dao.MenuMapper;
import com.xrit.sunnyday.pojo.Menu;
import com.xrit.sunnyday.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service(interfaceClass = MenuService.class)
public class MenuServiceImpl implements MenuService {
    @Autowired
    private MenuMapper menuMapper;
    @Override
    public Menu getMenus(Integer id) {
        return menuMapper.getMenus(id);
    }

    @Override
    public List<Menu> findMenu(Integer id) {
        List<Menu> menu = menuMapper.findMenu(id);
        return menu;
    }
}
